package com.bd.scm.domain.models.visitor;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/** 访客信息
 * Created with IntelliJ IDEA.
 * User: _Cps
 * Date: 2020.09.14 14:48
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@TableName("bd_visit_vistor")
public class VisitVistor implements Serializable {

    private static final long serialVersionUID = 1L;

    /**访客信息ID*/
    private Long id;

    /**姓名*/
    @TableField("vistor_name")
    private String vistorName;

    /**单位*/
    @TableField("vistor_company")
    private String vistorCompany;

    /**手机号*/
    @TableField("vistor_tel")
    private String vistorTel;

    /**证件类型*/
    @TableField("vistor_cert_type")
    private int vistorCertType;

    /**证件号码*/
    @TableField("vistor_cert_number")
    private String vistorCertNumber;

    /**注册时间*/
    @TableField("registe_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Data registeTime;

    /**微信ID*/
    @TableField("wexin_id")
    private String wexinId;

    /**最后修改时间*/
    @TableField("last_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Data lastTime;

}
